[OpenWrt]修改默认主题

您所在的位置:网站首页 openwrt bootstrap [OpenWrt]修改默认主题

[OpenWrt]修改默认主题

#[OpenWrt]修改默认主题| 来源: 网络整理| 查看: 265

修改默认主题

修改feeds/luci/libs/web/root/etc/config

1option mediaurlbase /luci-static/openwrt.org

可根据需要将openwrt.org修改为Bootstap、openwrtcn、freifunk-bno、freifunk-generic

添加主题 首先打开trunk/feeds/luci/themes这个目录,你会发现里面有很多主题(除了base为基础包外)每一个文件夹就是一个主题 我们得修改makefile文件,使其制定编译的时候能找到openwrtcn这个主题找到路径为trunk/feeds/luci/contrib/package/luci下面的makefile文件双击打开搜索OpenWrt.org这样很快就定位到添加主题的地方了,在下面空白处增加一句 12345678$(eval $(call theme,base,Common base for all themes))$(eval $(call theme,openwrt,OpenWrt.org ))$(eval $(call theme,bootstrap,Bootstrap Theme))$(eval $(call theme,openwrtcn,openwrtcn Theme (default),,,1))$(eval $(call theme,freifunk-bno,Freifunk Berlin Nordost Theme,\Stefan Pirwitz ))$(eval $(call theme,freifunk-generic,Freifunk Generic Theme,\Manuel Munz ))

保存退出即可。

默认中文,添加并默认主题

修改feeds/luci/libs/web/root/etc/config

1option lang auto

改为

1option lang zh_cn

并添加123config internal languagesoption en 'English'option zh_cn 'chinese'

修改主机名,设定时区

修改package/base-files/files/etc/config/system

1234567891011121314151617181920212223config system option conloglevel 8 option cronloglevel 8 option hostname Openwrt option timezone Asia/Shanghai option timezone CST-8 config timeserver ntp list server 0.openwrt.pool.ntp.org list server 1.openwrt.pool.ntp.org list server 2.openwrt.pool.ntp.org list server 3.openwrt.pool.ntp.org option enable_server 0

option hostname Openwrt 设定主机名option timezone Asia/Shanghai 时区设置为亚洲/上海option timezone CST-8 正8区list server 就是ntp服务器了。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3